home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 3006 / 3006.xpi / chrome / dwhelper.jar / content / about.xul next >
Extensible Markup Language  |  2010-01-15  |  2KB  |  71 lines

  1. <?xml version="1.0"?> 
  2. <!-- *****************************************************************************
  3.  *            Copyright (c) 2006-2009 Michel Gutierrez. All Rights Reserved.
  4.  ****************************************************************************** -->
  5. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  6. <?xml-stylesheet href="chrome://dwhelper/skin/dwhelper.css" type="text/css"?>
  7.  
  8. <!DOCTYPE window SYSTEM "chrome://dwhelper/locale/dwhelper.dtd" >
  9.  
  10. <dialog id="dwhelper-about"
  11.         title="&title.about;"
  12.         flex="1"
  13.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  14.         xmlns:html="http://www.w3.org/1999/xhtml"
  15.         buttons="accept"
  16.         onload="onLoad()"
  17.         >
  18.  
  19.     <script type="application/x-javascript"
  20.         src="chrome://dwhelper/content/dwhutil.js" />
  21.     <script>
  22. var Util=Components.classes["@downloadhelper.net/util-service;1"]
  23.     .getService(Components.interfaces.dhIUtilService);
  24.  
  25. function onLoad() {
  26.     var fullName=Util.getFText("version.fullname",
  27.         [ Util.getVersion("{b9db16a4-6edc-47ec-a1f4-b86292ed211d}")],1);
  28.     document.getElementById("about-version").value=fullName;
  29. }
  30.  
  31. function knowMore() {
  32.     var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
  33.                                 .getService(Components.interfaces.nsIWindowMediator);
  34.     var w = wm.getMostRecentWindow("navigator:browser");
  35.     var browser=w.getBrowser();
  36.     browser.selectedTab=browser.addTab("http://www.downloadhelper.net/");
  37.     window.close();
  38. }
  39.     </script>
  40.  
  41.     <html:div>
  42.         <tabbox style="width: 300px;" flex="1">
  43.             <tabs>
  44.                 <tab label="&version.name;"/>
  45.             </tabs>
  46.             <tabpanels flex="1">
  47.                 <tabpanel flex="1">
  48.                     <vbox flex="1">
  49.                         <hbox>
  50.                             <image src="chrome://dwhelper/skin/dwhelper-anim.gif" style="width: 48px; height: 48px;"/>
  51.                             <label id="about-version" style="padding: 20px;" />
  52.                         </hbox>
  53.                         <description>
  54.                         &about.for-free;
  55.                         </description>
  56.                         <description flex="1">
  57.                             &about.know-more; 
  58.                             <html:a onclick="knowMore()" style="color: Blue; text-decoration: underline; cursor: pointer;">&about.link;</html:a>
  59.                             &about.know-more2;                             
  60.                         </description>
  61.                         <description>
  62.                         &about.locale-credit;
  63.                         </description>
  64.                     </vbox>
  65.                 </tabpanel>
  66.             </tabpanels>
  67.         </tabbox>
  68.     </html:div>
  69.  
  70. </dialog>
  71.